package fuza.android.thetrafficsigns.help;


import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import fuza.android.thetrafficsigns.FragmentLaws;
import fuza.android.thetrafficsigns.FragmentRambu;



public class ViewPagerAdapter extends FragmentPagerAdapter {

	// Declare the number of ViewPager pages
	final int PAGE_COUNT = 2;

	public ViewPagerAdapter(android.support.v4.app.FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int arg0) {
		switch (arg0) {

			// Open FragmentTab1.java
		case 0:
			FragmentRambu fragmenttab1 = new FragmentRambu();
			return fragmenttab1;
		case 1:
			FragmentLaws fragmenttab2 = new FragmentLaws();
			return fragmenttab2;
//		case 2:
//			FragmentHelp fragmenttab3 = new FragmentHelp();
//			return fragmenttab3;
//		case 3:
//			FragmentRambu fragmenttab4 = new FragmentRambu();
//			return fragmenttab4;
		}
		return null;
	}

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return PAGE_COUNT;
	}

}
